package renda.dao;

import javax.annotation.Resource;

import org.hibernate.SessionFactory;
import org.springframework.orm.hibernate3.HibernateTemplate;

public class BaseDAO {
	
	private HibernateTemplate template;
	
	@Resource(name="mySessionFactory")
	public void setSessionFactory(SessionFactory factory){
		template = new HibernateTemplate(factory);
	}
	
	public HibernateTemplate getTemplate(){
		return template;
	}
	
	
}
